package com.wk.springboot.jdk8.functionInterface;

import java.util.function.Consumer;

/**
 * jdk8 四大核心接口之一
 * {@link java.util.function.Consumer}
 * 意为消费信息
 */
public class ConsumerTest {

    public static void consumer(int i, Consumer<Integer> consumer){
        consumer.accept(i);
    }
}
